;;软件源elpa
(setq package-archives '(("melpa" . "https://mirrors.bfsu.edu.cn/elpa/melpa/")
			 ("gnu" . "https://mirrors.bfsu.edu.cn/elpa/gnu/")
			 ("org" . "https://mirrors.bfsu.edu.cn/elpa/org/")))

(setq package-check-signature nil) ;;不检查签名

(require 'package)

;;初始化包管理器
(unless (bound-and-true-p package--initialized)
	(package-initialize))

;; 刷新软件源
(unless package-archive-contents
	(package-refresh-contents))

(unless (package-installed-p 'use-package)
	(package-refresh-contents)
	(package-install 'use-package))
	
(setq use-package-always-ensure t
	  use-package-always-demand nil
	  
	  ;; defer 设置包在用的时候在加载，而不是立即加载
	  ;; 所以有下面这句的时候，dashboard 默认没有加载，只能dashboard-open启动
	  ;use-package-always-defer t
	  
	  ;; expand 扩展，扩大
	  use-package-expand-minimally t
	  ;; verbose 详细的
	  use-package-verbose t)  

(require 'use-package)


(provide 'init-elpa)
